All Questions
Tagged with compilingcross-compilation
50 questions
0votes
0answers
487views
Compile git for /lib/ld-linux-armhf.so.3 from vm that links with /lib/ld-linux-aarch64.so.1 by default
I'm building git from source from a debian 10 vm that has /lib/ld-linux-aarch64.so.1, which ends up linked in the git binary after a basic NO_TCLTK=true make prefix=$(pwd)/2.41.0/arm make all and ~ ...
0votes
1answer
1kviews
what target flag should I set to cross compile arm 32 bit code in gcc?
I'm trying to build a cross compiling build server for some 32 bit arm devices, where the architecture is: (from uname -m) "armv5tejl" I have to specify the target for binutils, and gcc, ...
1vote
1answer
145views
Why this script stuck at "can't execute" branch?
I'm using this tool-chian provided by a manufacture of control boards. I followed the instruction step by step but when I tried to compile example code, the compilation process got stuck at "$...
0votes
1answer
363views
Compilation order when cross compiling Linux
I've been following the Linux From Scratch book and just need to fill some gaps in my understanding of cross compiling Linux. Where a toolchain has already been built for the target machine, is the ...
0votes
0answers
336views
Error on building gcc cross compiler toolchain
I'm following this guide to build a linux system for learning experience On the the guide at the section titled GCC (Static), I'm having an error, on running the command ` $ ln -vs libgcc.a `${...
1vote
1answer
3kviews
-lcrypt error cross compiling 64 to 32
I am trying to compile dirtycow exploit file which can be found in here. gcc -pthread dirty.c -o dirty -m32 -lcrypt Because my target is 32 bit I compile it with -m32 and -lycrypt to make sure it ...
0votes
1answer
1kviews
How to compile busybox for cortex-m7 (-march=armv7-m)?
I'm trying to run busybox on my waveshare stm32 development board but my SOC has "armv7-m" architecture not "armv7-a". so I've put the march flag in the menuconfig of busybox (-...
0votes
1answer
1kviews
cannot cross-compile busybox for arm
I've configured my busybox in menuconfig and made it as a static binary (no shared libs) + forced no MMU build. I'm using the prebuilt arm cross compiler and when I enter the below command, it gave me ...
2votes
1answer
1kviews
compiling old glibc on arm fails with undefined references in nis and nss
It seems to have become a bit complex, so first some background: I need to compile self-contained programs that run on arm systems with glibc versions typically between 2.13 and 2.17. When trying to ...
1vote
0answers
1kviews
Cross-Compilation using kernel headers
I coded a kernel module for my RaspberryPi. However, I need to cross-compile the module on my Ubuntu Development machine. I already downloaded the correct kernel-headers on my RaspberryPi and pushed ...
1vote
1answer
4kviews
GCC cross-compiler can't find header file
A host PC with a pre-built cross toolchain for ARM target. I try to build a project from source, the build process stopped due to an error, when code tried to build pppd-2.4.1 module, here is ...
1vote
0answers
1kviews
Linux kernel cross-compile failure at arch/arm64/crypto
I encountered an error while trying to cross-compile Linux kernel v.5.0.0 on Ubuntu 18.04. I tested two different versions of aarch64-linux-gnu-gcc: v7.4.0 and v5.5.0, but both results in the same ...
0votes
1answer
972views
Check which library compiled in linux
I want to compile a C file with gcc, to embedded arm that is running Gnu/Linux . How can I known which function/header files that I need to compile statically, and which dynamically?(I don't want to ...
3votes
1answer
27kviews
G++/GCC installed but still: error trying to exec 'cc1plus': execvp: No such file or directory
Full error message: arm-linux-gnueabihf-g++: error trying to exec 'cc1plus': execvp: No such file or directory So I have got this error message while trying to build a C++ project on my machine ...
2votes
1answer
3kviews
libzip Linux cross-compile configuration
I am trying to cross compile libzip-1.5.1 having previously successfully complied zlib-1.2.11 (these are required by libzip and I have installed in a local home path), but I am experiencing problems ...